package com.zto.sch.dao;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @program: javatest
 * @description:
 * @author: sch
 * @create: 2020-06-12 22:20
 **/
@Service("userDao")
//@Scope("prototype")
public class UserDaoImpl implements UserDao, InitializingBean {
    public UserDaoImpl() {
        System.out.println("userdaoImpl constructor");
    }

    @PostConstruct
    public void init(){
        System.out.println("UserDaoImpl postConstruct");
    }


    @Override
    public void save() {
        System.out.println("userdao");
    }

    @Override
    public String query() {
        return null;
    }

    @Override
    public String query(String id) {
        return null;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("afterSet...");
    }
}
